//
//  MPTableViewCell.m
//  PetTown
//
//  Created by lanou3g on 15/6/4.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "MPTableViewCell.h"

@implementation MPTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
    }
    return self;
}
-(void)setHomePage:(HomePage *)homePage{
    [_photoIma sd_setImageWithURL:[NSURL URLWithString:homePage.photo] placeholderImage:[UIImage imageNamed:@"place.jpg"]];
    _rankNumLable.text = [NSString stringWithFormat:@"%@",homePage.rankNum];
    _zanLable.text = [NSString stringWithFormat:@"%@",homePage.zan];
    _plnumLable.text = [NSString stringWithFormat:@"%@",homePage.plnum];
    _pl_nameLable.text = [NSString stringWithFormat:@"%@",homePage.disname];
    [_avatarImage sd_setImageWithURL:[NSURL URLWithString:homePage.avatar] placeholderImage:[UIImage imageNamed:@"place.jpg"]];
    _ppid = homePage.ppid;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
